import { FC } from 'react';
import { connect, ConnectProps, Loading } from 'umi';
import { RegisterModelState } from './model';

interface PageProps extends ConnectProps {
  register: RegisterModelState;
  loading: boolean;
}

const RegisterPage: FC<PageProps> = function ({ register, loading }) {
  return <div>主页测试</div>;
};

export default connect(
  ({
    register,
    loading,
  }: {
    register: RegisterModelState;
    loading: Loading;
  }) => ({
    register,
    loading: loading.models.register,
  }),
)(RegisterPage);
